import requests


class Register:

    def __init__(self):
        self.session = requests.session()

    def register_stream_user(self):
        url = "http://api-bnd.yuntiancloud.com:18088/v1/servo/register"
        # data = {"app_userid": "18118775522", "app_user_type": 999, "app_biz_type": 10125}
        data = {"app_userid": "18612180173", "app_biz_type": 8}
        res = self.session.post(url=url, json=data)
        print(res.json())

    def register_stream_user_beta08(self):
        url = "http://beta-08-api-bnd.yuntiancloud.com:18088/v1/servo/register"
        data = {"app_userid":"18118758100", "app_user_type":999,"app_biz_type":65}
        res = self.session.post(url=url, json=data)
        print(res.json())

    def register_stream_migu_user(self):
        url = "http://api-bnd-zj.migufun.com:18088/v1/servo/register"
        data = {"app_userid": "18612180174", "app_user_type": 999, "app_biz_type": 2}
        res = self.session.post(url=url, json=data)
        print(res.json())

    def register_sit_user(self):
        url = "http://cg-sit-auto.yuntiancloud.com/union-servo/v1/servo/register"
        # url = "http://cg-dev-api.yuntiancloud.com/union-servo/v1/servo/register"
        # data = {"app_userid": "18118758151", "app_user_type": 999, "app_biz_type": 75}
        data = {"app_userid": "18118758159", "app_biz_type": 78}
        res = self.session.post(url=url, json=data)
        print(res.json())

if __name__ == '__main__':
    Register().register_sit_user()
